projects
/
project
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1e5965
)
list_compat.h: remove list_add_head()
author
Felix Fietkau
<
[email protected]
>
Thu, 20 Mar 2014 21:58:21 +0000
(22:58 +0100)
committer
Felix Fietkau
<
[email protected]
>
Thu, 20 Mar 2014 21:58:21 +0000
(22:58 +0100)
Signed-off-by: Felix Fietkau <
[email protected]
>
avl.c
patch
|
blob
|
history
list_compat.h
patch
|
blob
|
history
diff --git
a/avl.c
b/avl.c
index 91b2bb87ac7f18f9be55791904a2b3ef5701e82d..545fd2a5269248bba176e0581ec195089c4df019 100644
(file)
--- a/
avl.c
+++ b/
avl.c
@@
-225,7
+225,7
@@
avl_insert(struct avl_tree *tree, struct avl_node *new)
new->leader = true;
if (tree->root == NULL) {
- list_add
_head(&tree->list_head, &new->list
);
+ list_add
(&new->list, &tree->list_head
);
tree->root = new;
tree->count = 1;
return 0;
diff --git
a/list_compat.h
b/list_compat.h
index 3dd1fd681c9c90211d7931ce94713d18572de917..1357287c5cb1b976d6e5bf451083edba9e985aec 100644
(file)
--- a/
list_compat.h
+++ b/
list_compat.h
@@
-17,7
+17,6
@@
#ifndef __LIST_COMPAT_H
#define __LIST_COMPAT_H
-#define list_add_head(_head, _list) list_add(_list, _head)
#define list_add_after(_after, _list) list_add(_list, _after)
#define list_add_before(_before, _list) list_add_tail(_list, _before)
#define list_remove(_list) list_del(_list)